
import request from '@/utils/request'

/**
 * 最新报警
 * @param params
 * @returns {AxiosPromise}
 */
export function new_alarm(params) {
  return request({
    url: '/admin/equipment_alarm_new',
    method: 'get',
    params
  })
}

/**
 * 初始化
 * @param params
 * @returns {AxiosPromise}
 */
export function equipment_alarm_new_init() {
  return request({
    url: '/admin/equipment_alarm_new_init',
    method: 'get',
  })
}



/**
 * 历史报警
 * @param params
 * @returns {AxiosPromise}
 */
 export function history_alarm() {
  return request({
    url: '/admin/equipment_alarm_history',
    method: 'get'
  })
}


/**
 * 处理报警
 * @param params
 * @returns {AxiosPromise}
 */
export function process_alarm(params) {
  return request({
    url: '/admin/equipment_alarm_handle',
    method: 'post',
    data:params
  })
}






